home *** CD-ROM | disk | FTP | other *** search
- Path: line236.nwm.mindlink.net!user
- From: emery@grebyn.com (David Emery)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Date: 5 Mar 1996 04:11:02 GMT
- Organization: MIND LINK! - British Columbia, Canada
- Message-ID: <emery-0403962012400001@line236.nwm.mindlink.net>
- References: <JSA.96Feb16135027@organon.com> <dewar.825640041@schonberg> <4h7i55INNknq@anvil.ugrad.cs.ubc.ca> <dewar.825776000@schonberg> <4hdt1tINN44i@keats.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: line236.nwm.mindlink.net
-
- In article <4hdt1tINN44i@keats.ugrad.cs.ubc.ca>, c2a192@ugrad.cs.ubc.ca
- (Kazimir Kylheku) wrote:
-
- ...
- > To which I reply: computer programs are deterministic. They are not cars
- > barreling down the highway. Your analogy is completely idiotic, and belongs in
- > *.os.advocacy.
- ...
-
- More and more computer programs are *NOT* deterministic, at least when
- considered from the perspective of the individual program. As we do more
- distributed systems, the potential for race conditions, in particular,
- grows significantly. Most of the bugs that I see on my Mac, for instance,
- seem to be tracable to race conditions or other non-deterministic (at least
- from the perspective of the failing program) behavior. One of my "favorites"
- is in CCMail 2.1.1. If you select multiple messages, and another message
- arrives while performing an operation on the set of messages, sometimes
- the new message forces a 'reevaluation' of the selection. This results in
- the operation being performed on a message I didn't select originally,
- but that the program selected "for me".
-
- One advantage of Ada, and more important of Ada programmers, is that Ada
- provides a language for expressing concurrency and reasoning about the
- dynamic behavior of distributed programs. Any Ada programmer who has
- had "Tasking 101" can describe a race condition. I remember watching
- two very senior C engineers spend 30 minutes back and forth trying to
- work out a race condition that the Ada engineers detected and resolved
- in 5 minutes...
-
- dave
-